<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<s:include value="/commun/header.jsp" />


<div id="body">

<h2>Profil</h2>

<table>
	<tr>
		<td id="info">Nom</td>
		<td id="infovalue"><s:property value="client.nom"/></td>
	</tr>
	<tr>
		<td id="info" width="150">Prénom</td>
		<td id="infovalue"><s:property value="client.prenom"/></td>
	</tr>
	<tr>
		<td id="info">Adresse e-mail</td>
		<td id="infovalue"><s:property value="client.utilisateur.adresseMail"/></td>
	</tr>
	<tr>
		<td id="info">Société</td>
		<td id="infovalue"><s:property value="client.entreprise" /></td>
	</tr>
</table>
<s:if test="%{#session.role=='admin' || #session.role=='client'}">
<p><s:url id="update" action="setupForNewClient"><s:param name="client.id" value="client.id"/></s:url>
		<s:a href="%{update}">Modifier mon profil</s:a>
		</p>
</s:if>
</div>

<s:include value="/commun/footer.jsp" />